With the HTTXPlugin you can use HTTX from within AWeb to save (or print) HTML pages as text. This version of the interface requires AWeb II 3.1 or better and HTTX 1.7 or better. Also, the command "Delete" must be present in C: directory.
HTTXPlugin.awebrx
HTTXPluginCFG.awebrx
HTTXPluginPRT.awebrx
HTTX <-- yes, also the HTTX executable!
HTTXPlugin.doc.html
To the AWeb/Plugins/HTTX directory.
First three (menu, buttons, keys):
You can add three entries, one for Save as text (HTTXPlugin.awebrx), one for Print as text (HTTXPluginPRT.awebrx) and one for the HTTX and plugin configuration (HTTXPluginCFG.awebrx).
Popup menu (frame)
Add the entries "Save As Text" and "Print As Text" (if required) using the following commands.
save:
RUN AWebPath:Plugins/HTTX/HTTXPlugin.awebrx TARGET %i
print:
RUN AWebPath:Plugins/HTTX/HTTXPluginPRT.awebrx TARGET %i
Now it will be possible to save or print a single frame directly from the popup menu (without using the plugin "Select frames" function).
HTTXPluginCFG.awebrx
with AWeb to set the various
options.
The standard HTTX settings will be saved in the environment variables
HTTX.prefs
(for Save as text) and HTTXprt.prefs
(for Print as text).
Other options (like FORCE or INCLUDE) are managed directly from the
Plugin.
Refer to
HTTX documentation
for a full explanation of options.
Example of the added text:
Header: HTTP/1.0 200 OK Server: Netscape-Enterprise/2.01 Date: Sat, 26 Apr 1997 06:38:12 GMT Accept-ranges: bytes Last-modified: Tue, 15 Apr 1997 13:57:46 GMT Content-length: 7085 Content-type: text/html Content-Type: text/html; charset=ISO-8859-1
"SYS:Utilities/"
drawer). After closing MultiView a
requester will ask if the document should be kept or deleted. Select Delete
and the file will be erased and no conversion informations will be shown.Note that some versions of MultiView seems to have problems with some of the ANSI codes used by HTTX. If part of text not indented, don't worry, it is MultiView. See HTTX documentation for more informations.
This option is only used when saving as text.
The HTTX-AWeb settings are saved in the environment variable
HTTXPlugin.config
.
Saving preferences for HTTX works like the standard WB preference programs.
Use the "Save" or "Use" option to store data. With
"Save" the settings are stored in ENVARC:
and the
changes are permanent. With "Use" they are saved only in
ENV:
so changes are lost when you reboot. The first time you
configure HTTX you MUST use "Save" option.
If page contains frames (or iframes) a requester will open. You may choose to save all frames to a single file or use a requester to save or skip each frame.
If preview is active when saving, after conversion of any document, the converted document will be shown and then the keep or delete requester will be shown.